home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 1698 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: sm1.psy.soton.ac.uk!user
  2. From: at@neuro.psy.soton.ac.uk (Adriaan Tijsseling)
  3. Newsgroups: comp.lang.c
  4. Subject: Shuffle
  5. Date: Tue, 16 Jan 1996 12:12:28 +0000
  6. Organization: Electronics and Computer Science, University of Southampton
  7. Message-ID: <at-1601961212280001@sm1.psy.soton.ac.uk>
  8. NNTP-Posting-Host: sm1.psy.soton.ac.uk
  9.  
  10. Hi,
  11.  
  12.  
  13. For my neural network simulator I need a piece of code which shuffles
  14. a set of n patterns in a random way. I.e. a set of 4 patterns would
  15. then be shuffled such that I have a set of m orders of these patterns:
  16.  
  17. 1  2  3  4
  18. 4  3  1  2
  19. 2  1  3  4
  20. etc.
  21.  
  22.  
  23. Any help would be greatly appreciated,
  24.  
  25. Many thanks in advance,
  26.  
  27. ______________________________________________________________
  28.  
  29.  /\  _| _. _  _  _   ~|~.. _ _ _ |. _  _ 
  30. /~~\(_|| |(_|(_|| |   | ||_\_\(/_||| |(_|
  31.                          |             _|
  32. Work:
  33.    Cognitive Sciences Centre
  34.    Department of Psychology
  35.    University of Southampton
  36.    United Kingdom
  37.  
  38. Homepages:
  39.    work: http://www.soton.ac.uk/~coglab/coglab
  40.    life: http://www.soton.ac.uk/~agt/
  41.  
  42. E-mail:
  43.    at@neuro.psy.soton.ac.uk
  44.    at@cogsci.ecs.soton.ac.uk
  45.    agt@oak.soton.ac.uk
  46. ______________________________________________________________
  47.  
  48. -- 
  49. http://www.soton.ac.uk/~agt/
  50. http://www.soton.ac.uk/~coglab/coglab/
  51.